<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterCouponBrandAddSubtitle extends Migrator
{
    public function up()
    {
        $sql = <<<SQL
ALTER TABLE `coupon_brand`
ADD COLUMN `subtitle`  VARCHAR(100) NOT NULL DEFAULT '' COMMENT '副标题';
SQL;
        $this->execute($sql);
    }

    public function down()
    {
        $this->table('coupon_brand')->removeColumn('subtitle');
    }
}
